﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace WindowsFormsApplication2
{
    public static class Extensions
    {
        public static double ToRad(this double degrees)
        {
            return (degrees * Math.PI) / 180d;
        }

        public static double ToDeg(this double radians)
        {
            return (radians / Math.PI) * 180d;
        }
    }
}
